﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Lilium.Web.Mvc
{
	/// <summary>
	/// An interface to access model error collection
	/// </summary>
	public interface IModelErrors
	{
		void AddModelError(string key, string value);

		void CopyToModelState(ModelStateDictionary modelStateDictionary);

		string GetCombinedMessage();

		bool HasErrors { get; }
	}
}